xmlgeneric: Fix order of 'str_match' parameters.
authoroliskoli <oliskoli>
Fri, 29 Jun 2007 20:55:25 +0000 (20:55 +0000)
committeroliskoli <oliskoli>
Fri, 29 Jun 2007 20:55:25 +0000 (20:55 +0000)
xmlgeneric.c

index 74ea8f1924e14497e427003152ee1a068251af75..d83faceb2de4d94829b796c9ec95ba511b006d26 100644 (file)
@@ -160,7 +160,7 @@ xml_tbl_lookup(const char *tag, xg_cb_type cb_type)
 {
        xg_tag_mapping *tm;
         for (tm = xg_tag_tbl; tm->tag_cb != NULL; tm++) {
-               if (str_match(tm->tag_name, tag) && (cb_type == tm->cb_type)) {
+               if (str_match(tag, tm->tag_name) && (cb_type == tm->cb_type)) {
                        return tm->tag_cb;
                }
        }